<?php

/**
 * Subclass for performing query and update operations on the 't_alternative' table.
 *
 * 
 *
 * @package lib.model.quiz
 */ 
class AlternativePeer extends BaseAlternativePeer
{
  public static function getAlternatives($id_question)
  {	
  	$criteria = new Criteria();
  	$criteria->addJoin(self::ID,QuestionAlternativePeer::ID_ALTERNATIVE);
  	$criteria->add(QuestionAlternativePeer::ID_QUESTION,$id_question);
  	$resultados = AlternativePeer::doSelect($criteria);
  	foreach($resultados as $resultado)
  	{
  	  	print $resultado;
  	}
  	exit();
  	
  }
}
